home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / scsh / next / sigset.h < prev    next >
Text File  |  1995-10-13  |  338b  |  8 lines

  1. /* Convert between a lo24/hi integer-pair bitset and a sigset_t value.
  2. ** These macros are OS-dependent, and must be defined per-OS.
  3. */
  4. #define make_sigset(maskp, hi, lo) (*(maskp)=(sigset_t)((hi)<<24)|(lo))
  5. /* Not a procedure: */
  6. #define split_sigset(mask, hip, lop) \
  7.     ((*(hip)=(((int)mask)>>24)&0xff), (*(lop)=(((int)mask)&0xffffff)))
  8.